Date.prototype.format = function (fmt) {
  var o = {
    "M+": this.getMonth() + 1, //月份
    "d+": this.getDate(), //日
    "h+": this.getHours(), //小时
    "m+": this.getMinutes(), //分
    "s+": this.getSeconds(), //秒
    "q+": Math.floor((this.getMonth() + 3) / 3), //季度
    "S": this.getMilliseconds() //毫秒
  };
  if (/(y+)/.test(fmt)) {
    fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  }
  for (var k in o) {
    if (new RegExp("(" + k + ")").test(fmt)) {
      fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
    }
  }
  return fmt;
}
const now = new Date().format("yyyy-MM-dd");
export const messages = [{
    source: "PT",
    sourceName: "平台",
    unreadCount: 1,
    messageList: [{
      msgId: '323',
      type: '1',
      title: '欢迎使用有度税智',
      msgContent: {
        textContent: {
          content: "欢迎使用有度 . 税智，小度竭诚为您服务。"
        },
        formContent: {
          formContents: [{}]
        }
      },
      sendTime: now,
      status: 2,
    }, {
      msgId: '333',
      type: '2',
      title: '平台功能升级',
      msgContent: {
        textContent: {
          content: "好消息，好消息，平台功能升级啦，有度税智数字化平台新增***功能，你能干这个干那个 能做很多事情哦，赶紧来试试吧。"
        },
        formContent: {
          formContents: [{}]
        }
      },
      sendTime: now,
      status: 2,
    }, {
      msgId: '356',
      type: '3',
      title: '平台功能升级',
      msgContent: {
        textContent: {
          content: "有度税智数字化平台V2.0版本上线了，新手指南请收下。"
        },
        formContent: {
          formContents: [{}]
        }
      },
      sendTime: now,
      status: 2,
      image: 'http://open-doc.yunzhangfang.com/public/upload/1615879317421541.jpg',
      sendUrl: 'https://qy.yunzhangfang.com/article.html?page=news&id=142'
    }]
  }, {
    source: "YDRWZL",
    sourceName: "任务助理",
    unreadCount: 1,
    messageList: [{
      msgId: '323',
      type: '4',
      title: '审批',
      msgContent: {
        textContent: {
          content: ""
        },
        formContent: {
          content: "您有 1 个审批单需处理。",
          formContents: {
            type: '发票申请',
            faqi: '张三',
            start: '2021-12-31 14:32:30',
            url: ''
          }
        }
      },
      status: 2,
      sendTime: now
    }, {
      msgId: '333',
      type: '1',
      title: '任务提醒',
      msgContent: {
        textContent: {
          content: "您有 3 个任务还未处理。"
        },
        formContent: {
          formContents: [{}]
        }
      },
      status: 2,
      sendTime: now
    }]
  },
  {
    source: "YZFReceiveInvoicePlatform",
    sourceName: "薪资应用",
    unreadCount: 1,
    messageList: [{
      msgId: '4444322',
      type: '2',
      title: '消息提醒',
      msgContent: {
        textContent: {
          content: "薪资应用薪资应用项薪资应用飞丹砂。"
        },
        formContent: {
          formContents: [{}]
        }
      },
      status: 2,
      sendTime: now
    }]
  }, {
    source: "YZFXSB",
    sourceName: "物流应用",
    unreadCount: 1,
    messageList: [{
      msgId: '3243243',
      type: '2',
      title: '消息提醒',
      msgContent: {
        textContent: {
          content: "水电费收费是否神鼎飞丹砂。"
        },
        formContent: {
          formContents: [{}]
        }
      },
      status: 2,
      sendTime: now
    }, {
      msgId: '3243434',
      type: '2',
      title: '消息提醒',
      msgContent: {
        textContent: {
          content: "发是的发生的范德萨范德萨"
        },
        formContent: {
          formContents: [{}]
        }
      },
      status: 2,
      sendTime: now
    }]
  },
  {
    source: "YZFJTSW",
    sourceName: "财务应用",
    unreadCount: 1,
    messageList: []
  }
];